home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / Conic Sections 0.9.2 / Include / MenuHandler.h < prev    next >
Encoding:
Text File  |  1997-05-10  |  865 b   |  47 lines  |  [TEXT/CWIE]

  1. //Copyright (c) 1997 Aidan Cully
  2. //All rights reserved
  3.  
  4. #ifndef __CONICMENUS_H
  5. #define __CONICMENUS_H
  6.  
  7. enum {
  8.     kControlWindowID=128,
  9.     kConicWindowID=129,
  10.     kPlotWindowID=132,
  11.     kEquWindowID=131
  12. };
  13.  
  14. #include "CLActionHandler.h"
  15. #include "conic.h"
  16. #include "CLBaseWindow.h"
  17. #include "CLLayout.h"
  18.  
  19. #define m_APPLE 128
  20. #define     ma_ABOUT 1
  21. #define m_FILE 129
  22. #define     mf_CLOSE 1
  23. #define     mf_QUIT 2
  24. #define m_EDIT 130
  25. #define     me_COPY 1
  26. #define m_WINDOW 131
  27. #define     mw_CONIC 1
  28. #define     mw_PLOT 2
  29. #define     mw_EQU 3
  30. #define     mw_CONTROL 4
  31.  
  32. class TConicHandler:
  33.     public MActionHandler
  34. {
  35. protected:
  36.     TConic mConic;
  37.     TPlane mPlane;
  38.     TBaseWindow *mConicWindow, *mPlotWindow, *mEquWindow, *mControlWindow;
  39.     Boolean mHasDragDrop;
  40. public:
  41.     TConicHandler( Boolean, MActionHandler* );
  42.     virtual ~TConicHandler();
  43.     virtual SInt8 Init();
  44.     virtual SInt8 HandleAction( UInt32 );
  45. };
  46.  
  47. #endif